//
//  ReportManager.m
//  Showing
//
//  Created by Ralf on 15/5/10.
//  Copyright (c) 2015年 com.next.starlooking. All rights reserved.
//

@import UIKit;

#import "ReportManager.h"

@implementation ReportManager

@synthesize parameterManager;

- (ResultSet *)submitReport:(NSDictionary *)report
{
    NSMutableDictionary *params = [NSMutableDictionary new];

    params[@"type"]     = report[@"type"];
    params[@"source"]   = report[@"source"];
    params[@"sourceID"] = report[@"sourceID"];

    if (report[@"description"])
    {
        params[@"description"] = report[@"description"];
    }
    params[@"sessionID"] = parameterManager.sessionID;
    return [self request:@"report/submitReport" params:params];
}

@end
